<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
    <script src="js/jquery.min.js"></script>
    <link rel="stylesheet" href="css/common.css"/>
    <link rel="stylesheet" href="css/preferential_activities.css"/>
</head>
<body class="ab">
<div id="header">
    <p>优惠活动</p>
</div>
<div class="tab">
    <p class="active">折扣劵</p>
    <p>代金劵</p>
    <p>体验劵</p>
</div>
<div id="main">
    <div class="load"><img src="imgs/loading.gif" alt=""/></div>
</div>
<div class="bot_loading">加载中...</div>
<div id="footer">
    <ul>
        <li><a href="home.html"><img src="imgs/footer1.png" alt=""/><p>预约挂号</p></a></li>
        <li  class="footer-active"><img src="imgs/footer-2.png" alt=""/><p>优惠活动</p></li>
        <li><a href="member_index.html"><img src="imgs/footer3.png" alt=""/><p>个人中心</p></a></li>
    </ul>
</div>
<script id="list" type="text/html">
    {{each data value}}
    <div class="list">
        <div class="left"><img src="imgs/vr.png" alt=""/></div>
        <ul class="center">
            <li>{{value.title}}</li>
            {{if value.type==1}}
            <li class="red"><span>{{value.discount}}</span> 折</li>
            {{else if value.type==2}}
            <li class="red"><span>{{value.cash}}</span> 元</li>
            {{/if}}
            <li>有效期至<i>{{value.end_time}}</i></li>
        </ul>
        <ul class="right">
            {{if value.has==1}}
            <li class="color">已领取</li>
            {{else if value.rest_num<=0}}
            <li class="color">领取</li>
            {{else}}
            <li><a  class="get" f_id="{{value.id}}" href="get_success.html">领取</a></li>
            {{/if}}
            <li class="look"><a href="erweima.html">查看详情</a></li>
            <li>剩余 <i>{{value.rest_num}}</i>张</li>
        </ul>
    </div>
    {{/each}}
</script>
<script src="js/jquery.cookie.js"></script>
<script src="js/config.js"></script>
<script src="js/template.js"></script>
<script src="js/ajax.js"></script>
<script src="js/youhuihuodong.js"></script>
</body>
</html>